<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>优酷无线统计平台</title>
		
		<!--                       CSS                       -->
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />	
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all">
		
		<!--                       Javascripts                       -->  
		<!-- jQuery -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
		<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="resources/scripts/facebox.js"></script>
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
		<!-- High Chart-->
		<script src="resources/scripts/highcharts.js" type="text/javascript"></script>
		<!-- ShowLoading -->
		<link href="resources/css/showLoading.css" rel="stylesheet" media="screen" /> 
		<script type="text/javascript" src="resources/scripts/jquery.showLoading.js"></script>
		<!-- TableSort -->
		<script type="text/javascript" src="resources/scripts/jquery.tableSort.js"></script>
		<!-- CSV export -->
		<script type="text/javascript" src="resources/scripts/table2CSV.js"></script>


		<!-- Page JS -->
		<script src="resources/pagejs/util.js" type="text/javascript"></script>
		<script src="resources/pagejs/charts.js" type="text/javascript"></script>
		<script src="resources/pagejs/mainOSComp.js" type="text/javascript"></script>
		<script src="resources/pagejs/mainOSDetail.js" type="text/javascript"></script>
		<script src="resources/pagejs/paikeOSComp.js" type="text/javascript"></script>
		<script src="resources/pagejs/paikeOSDetail.js" type="text/javascript"></script>
		<script src="resources/pagejs/promoGeneral.js" type="text/javascript"></script>
		<script src="resources/pagejs/factoryGeneral.js" type="text/javascript"></script>

		<script>
			var page, result;
			// 页面切换
			function getContent(p, para) {
				var APIUrl;

				jQuery('#body-wrapper').showLoading();
				$(".current").removeClass("current");

				if (para == "30")
				{
					var startDate = new Date()
					startDate.setDate(startDate.getDate()-30);
					para = "?staDate="+ startDate.getFullYear()+ "/" + (startDate.getMonth()+1)+ "/" + startDate.getDate() +"&pd=30";
					$("#"+p+"Date30").addClass("current");
				}


				if (p == "MainOSComp" || p == "MainOSDetail")
				{
					APIUrl = "http://10.103.13.104:8001/client/mainAnalytics"+para;
				}
				else if (p == "PaikeOSComp" ||  p == "PaikeOSDetail")
				{
					APIUrl = "http://10.103.13.104:8001/client/paikeAnalytics"+para;
				}
				else if(p == "PromoGeneral")
				{
					APIUrl = "http://10.103.13.104:8001/client/promoFactoryName";
				}
				else if(p == "FactoryGeneral")
				{
					APIUrl = "http://10.103.13.104:8001/client/factoryName";
				}

				$("#"+p+"Menu").addClass("current");
				$(".default-tab").addClass("current");
				$(".pageContent").hide();
				$("#"+p+"Content").show( "slide", {}, 500);
				page = p;

				$.ajax({
					type: "GET",
					url: APIUrl,
					dataType : "jsonp",
					jsonnp: "callback",
					success: onLoadDataSuccess
				});
			}

			function onLoadDataSuccess(data) {
				result = data;
				if (page == "MainOSDetail")
				{
					loadMainOSDetail(result);

				}
				else if (page == "MainOSComp")
				{
					loadMainOSComp(result);
				}
				else if (page == "PaikeOSComp")
				{
					loadPaikeOSComp(result);
				}
				else if (page == "PaikeOSDetail")
				{
					loadPaikeOSDetail(result);
				}
				else if (page == "PromoGeneral")
				{
					loadPromoFactoryList(result);
				}
				else if (page == "FactoryGeneral")
				{
					loadFactoryList(result);
				}
			}

			//调用jQueryUI日历
			$(function() {
				$( ".date" ).datepicker({ dateFormat: 'yy/mm/dd' });

				var uname = getCookie("uname"); 
				if ( uname != null && uname != "" ) { 
					$("#uname").html(uname);
				}
				else {
					window.location.href = "login.html";
				}


				$("#main-content").css("width", document.body.clientWidth - 247);
			});	


			function getCookie(name) { 
				if(document.cookie.length > 0) { 
					start = document.cookie.indexOf(name + "=");
					if( start != -1) { 
						start = start + name.length + 1;
						end = document.cookie.indexOf(";",start);
						if( end == -1) { 
							end = document.cookie.length;
						} 
						return decodeURI(document.cookie.substring(start,end)); 
					} 
					
				} 
				return ""; 
			} 
			
			function deleteCookie(name, path, domain) 
			{
				if(getCookie(name))
				{
					document.cookie = name + "=" +
						((path) ? "; path=" + path : "") +
						((domain) ? "; domain=" + domain : "") +
						"; expires=Thu, 01-Jan-70 00:00:01 GMT";
				}
				window.location.href = "login.html";
			}
			function deleteAllCookies() {
				deleteCookie("uname");
				deleteCookie("uid");
				deletecookie("pwd");
			}

			function getCSVData(tableID){
				var os = check_os();
				if (os == "MS Windows" || os == "Lunix" || os == "Unix")
					var csv_value=$('#'+tableID).table2CSV({delivery:'value'});
				else if (os == "Apple mac")
					var csv_value=$('#'+tableID).table2CSV({delivery:'value', separator : ';'});


				 
				 $("#csv_text").val(csv_value);	
				 document.formCSV.submit();
			}
            
            function getCSVData_save(tableID){
				var os = check_os();
				if (os == "MS Windows" || os == "Lunix" || os == "Unix")
					var csv_value=$('#'+tableID).table2CSV({delivery:'value'});
				else if (os == "Apple mac")
					var csv_value=$('#'+tableID).table2CSV({delivery:'value', separator : ';'});


				 
                 $.ajax({
		type: "POST",
		url: "/client/getcsv_save",
        data : {
    csv_text : csv_value,
},
        dataType: "html", 
		success: function(msg){
        
	ss='123';
         
								}
				});
                 
                 
                 }
		</script>
	</head>
  
	<body>
		<form action="/client/getcsv" method ="post" name="formCSV" accept-charset="utf8" > 
		<input type="hidden" name="csv_text" id="csv_text">
		<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" src="resources/images/logo.png" alt="优酷无线统计平台" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				<span id="greetingTxt">早上好</span>, <span id="uname"></span><br />
				<br />
				<a onclick="deleteAllCookies()">退出</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
				
				<li> 
					<a id="Main" href="#" class="nav-top-item"> <!-- Add the class "current" to current menu item -->
					主产品线
					</a>
					<ul>
						<li><a id="MainOSCompMenu" href="#" onclick="getContent('MainOSComp', '30')">基本统计</a></li> <!-- Add class "current" to sub menu items also -->
						<li><a id="MainOSDetailMenu" href="#" onclick="getContent('MainOSDetail', '30')">平台详情</a></li>
					</ul>
				</li>
				
				<li>
					<a href="#" class="nav-top-item">
						厂商内置
					</a>
					<ul>
						<li><a id="FactoryGeneralMenu" href="#" onclick="getContent('FactoryGeneral', '')">基本统计</a></li>
					</ul>
				</li>
				
				<li>
					<a href="#" class="nav-top-item">
						渠道推广
					</a>
					<ul>
						<li><a id="PromoGeneralMenu" href="#" onclick="getContent('PromoGeneral', '')">基本统计</a></li>
					</ul>
				</li>     
				<li> 
					<a id="Main" href="#" class="nav-top-item"> <!-- Add the class "current" to current menu item -->
					Paike
					</a>
					<ul>
						<li><a id="PaikeOSCompMenu" href="#" onclick="getContent('PaikeOSComp', '30')">基本统计</a></li>
						<li><a id="PaikeOSDetailMenu" href="#" onclick="getContent('PaikeOSDetail', '30')">平台详情</a></li>
					</ul>
				</li>
			</ul> 
						
		</div></div>
		
		<div id="main-content">
			
			<!-- 不支持JAVASCRIPT 提示-->
			<noscript>
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					Download From <a href="http://www.exet.tk">exet.tk</a></div>
				</div>
			</noscript>
			<div id="welcome" class="pageContent">
				<img src="resources/images/welcome_youku_ma.png" style="position: relative; top: 30%;" />
			</div>
			<!-- 主客户端，基本统计-->
			<div id="MainOSCompContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>主客户端基本统计</h3>
						<div class="clear"></div>
					</div>
					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="MainOSCompStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="MainOSCompEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<input id="ad_man" name="ad_man" type="hidden">
								<input id="other" name="other" type="hidden">
								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="updateDateRange('MainOSComp')">
							
							  </div>
							  <div class="mnum" style="color:#444">
								<a id="MainOSCompDate7" class="MainOSCompDate" onclick="updatePresetDataRange('MainOSCompDate', 7)">周</a> |
								<a id="MainOSCompDate30" class="MainOSCompDate" onclick="updatePresetDataRange('MainOSCompDate', 30)">月</a> |
								<a id="MainOSCompDate90" class="MainOSCompDate" onclick="updatePresetDataRange('MainOSCompDate', 90)">季</a> |
								<a id="MainOSCompDate365" class="MainOSCompDate" onclick="updatePresetDataRange('MainOSCompDate', 365)">年</a> |
								<a id="MainOSCompDateAll" class="MainOSCompDate" onclick="updatePresetDataRange('MainOSCompDate', 'All')">全部</a>
							 </div>
							  <div class="clear"></div>

						</div>
					</div>

					<div class="blockboxbg">
						<div class="blockbox">
						  
						  <div id="mainOSCompTab1" onclick="changeMainOSCompValueType(1)" class="bitem selbitem">使用设备数(UV)</div>
						  <div id="mainOSCompTab3" onclick="changeMainOSCompValueType(3)" class="bitem">新增设备数(NU)</div>
						  <div id="mainOSCompTab0" onclick="changeMainOSCompValueType(0)" class="bitem">播放量(VV)</div>
						  <div id="mainOSCompTab6" onclick="changeMainOSCompValueType(6)" class="bitem">累计使用设备数(TU)</div>
						  <div id="mainOSCompTab2" onclick="changeMainOSCompValueType(2)" class="bitem">页面访问量(PV)</div>
						  <div id="mainOSCompTab7" onclick="changeMainOSCompValueType(7)" class="bitem">VV/UV</div>
						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div style="float:right">
							<div id="MainOSCompPieTab" class="MainOSCompChartTab citem" onclick="changeChartType('MainOSComp', 'Pie');"><img src="resources/images/piechart.png" width="25"/></div>
							<div id="MainOSCompLineTab" class="MainOSCompChartTab citem" onclick="changeChartType('MainOSComp', 'Line');" style="display:none"><img src="resources/images/linechart.png" width="25" /></div>
							<div id="MainOSCompTableTab" class="MainOSCompChartTab citem" onclick="changeChartType('MainOSComp', 'Table');" style="display:none"><img src="resources/images/table.png" width="25" /></div>
							<div id="MainOSCompAllTab" class="MainOSCompChartTab citem" onclick="changeChartType('MainOSComp', 'All');" style="display:none"><img src="resources/images/expand.png" width="25" /></div>							
						</div>
						<div class="clear"></div>
						<div class="tab-content default-tab">
							<div id="MainOSCompPie" class="MainOSCompChart"  style="margin: 0 auto;"></div>
							<div id="MainOSCompArea" class="MainOSCompChart" style="margin: 0 auto; display:none;"></div>
							<div id="MainOSCompLine" class="MainOSCompChart" style="margin: 0 auto; display:none;"></div>
							<div id="MainOSCompTable" class="MainOSCompChart" style=" display:none;" >

							</div>
						</div>
					</div>
				</div>
			</div>

			
			<!-- 主客户端，平台详情-->
			<div id="MainOSDetailContent" class="pageContent" style="display:none">

				<div class="content-box">	
					<div class="content-box-header">
						<h3>主客户端平台详情</h3>
						<div class="clear"></div>
					</div>

					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="MainOSDetailStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="MainOSDetailEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<input id="ad_man" name="ad_man" type="hidden">
								<input id="other" name="other" type="hidden">
								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="updateDateRange('MainOSDetail')">
							
							  </div>
							  <div class="mnum" style="color:#444">
								<a id="MainOSDetailDate7" class="MainOSDetailDate" onclick="updatePresetDataRange('MainOSDetailDate', 7)">周</a> |
								<a id="MainOSDetailDate30" class="MainOSDetailDate" onclick="updatePresetDataRange('MainOSDetailDate', 30)">月</a> |
								<a id="MainOSDetailDate90" class="MainOSDetailDate" onclick="updatePresetDataRange('MainOSDetailDate', 90)">季</a> |
								<a id="MainOSDetailDate365" class="MainOSDetailDate" onclick="updatePresetDataRange('MainOSDetailDate', 365)">年</a> |
								<a id="MainOSDetailDateAll" class="MainOSDetailDate" onclick="updatePresetDataRange('MainOSDetailDate', 'All')">全部</a>
							 </div>
							  <div class="clear"></div>

						</div> 
					</div>

					<div class="blockboxbg">
						<div class="blockbox" id="MainOSDetailTab">

						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div style="float:right">
							<div id="MainOSDetailLineTab" class="MainOSDetailChartTab citem" onclick="changeChartType('MainOSDetail', 'Line');"><img src="resources/images/linechart.png" width="25" /></div>
							<div id="MainOSDetailTableTab" class="MainOSDetailChartTab citem" onclick="changeChartType('MainOSDetail', 'Table');"><img src="resources/images/table.png" width="25" /></div>
							<div id="MainOSDetailAllTab" class="MainOSDetailChartTab citem" onclick="changeChartType('MainOSDetail', 'All');"><img src="resources/images/expand.png" width="25" /></div>	
						</div>
     					<div class="clear"></div>

						<div class="tab-content default-tab" id="tabMainOSDetailLine">
							<div id="MainOSDetailLine" class="MainOSDetailChart" style="margin: 0 auto; "></div>
							<div id="MainOSDetailTable" class="MainOSDetailChart" style=" display:none;" ></div>
						</div>
					</div>
				</div>
			</div>


			<!-- 拍客，基本统计-->
			<div id="PaikeOSCompContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>拍客基本统计</h3>
						<div class="clear"></div>
					</div>

					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="PaikeOSCompStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="PaikeOSCompEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<input id="ad_man" name="ad_man" type="hidden">
								<input id="other" name="other" type="hidden">
								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="updateDateRange('PaikeOSComp')">
							
							  </div>
							  <div class="mnum" style="color:#444">
								<a id="PaikeOSCompDate7" class="PaikeOSCompDate" onclick="updatePresetDataRange('PaikeOSCompDate', 7)">周</a> |
								<a id="PaikeOSCompDate30" class="PaikeOSCompDate" onclick="updatePresetDataRange('PaikeOSCompDate', 30)">月</a> |
								<a id="PaikeOSCompDate90" class="PaikeOSCompDate" onclick="updatePresetDataRange('PaikeOSCompDate', 90)">季</a> |
								<a id="PaikeOSCompDate365" class="PaikeOSCompDate" onclick="updatePresetDataRange('PaikeOSCompDate', 365)">年</a> |
								<a id="PaikeOSCompDateAll" class="PaikeOSCompDate" onclick="updatePresetDataRange('PaikeOSCompDate', 'All')">全部</a>
							 </div>
							  <div class="clear"></div>

						</div>
					</div>

					<div class="blockboxbg">
						<div class="blockbox">
						  
						  <div id="paikeOSCompTab1" onclick="changePaikeOSCompValueType(1)" class="bitem selbitem">使用设备数(UV)</div>
						  <div id="paikeOSCompTab3" onclick="changePaikeOSCompValueType(3)" class="bitem">新增设备数(NU)</div>
						  <div id="paikeOSCompTab0" onclick="changePaikeOSCompValueType(0)" class="bitem">播放量(VV)</div>
						  <div id="paikeOSCompTab6" onclick="changePaikeOSCompValueType(6)" class="bitem">累计使用设备数(TU)</div>
						  <div id="paikeOSCompTab4" onclick="changePaikeOSCompValueType(4)" class="bitem">注册用户数(NR)</div>
						  <div id="paikeOSCompTab5" onclick="changePaikeOSCompValueType(5)" class="bitem">成功上传量(SU)</div>
						  <div id="paikeOSCompTab7" onclick="changePaikeOSCompValueType(7)" class="bitem">VV/UV</div>
						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div style="float:right">
							<div id="PaikeOSCompPieTab" class="PaikeOSCompChartTab citem" onclick="changeChartType('PaikeOSComp', 'Pie');"><img src="resources/images/piechart.png" width="25"/></div>
							<div id="PaikeOSCompLineTab" class="PaikeOSCompChartTab citem" onclick="changeChartType('PaikeOSComp', 'Line');" style="display:none"><img src="resources/images/linechart.png" width="25" /></div>
							<div id="PaikeOSCompTableTab" class="PaikeOSCompChartTab citem" onclick="changeChartType('PaikeOSComp', 'Table');" style="display:none"><img src="resources/images/table.png" width="25" /></div>
							<div id="PaikeOSCompAllTab" class="PaikeOSCompChartTab citem" onclick="changeChartType('PaikeOSComp', 'All');" style="display:none"><img src="resources/images/expand.png" width="25" /></div>							
						</div>
     					<div class="clear"></div>
						<div class="tab-content default-tab">
							<div id="PaikeOSCompPie" class="PaikeOSCompChart"  style="margin: 0 auto;"></div>
							<div id="PaikeOSCompArea" class="PaikeOSCompChart" style="margin: 0 auto; display:none;"></div>
							<div id="PaikeOSCompLine" class="PaikeOSCompChart" style="margin: 0 auto; display:none;"></div>
							<div id="PaikeOSCompTable" class="PaikeOSCompChart" style=" display:none;" ></div>
						</div>
					</div>
				</div>
			</div>


			<!-- 拍客，平台详情-->
			<div id="PaikeOSDetailContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>拍客平台详情</h3>
						<div class="clear"></div>
					</div>

					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="PaikeOSDetailStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="PaikeOSDetailEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<input id="ad_man" name="ad_man" type="hidden">
								<input id="other" name="other" type="hidden">
								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="updateDateRange('PaikeOSDetail')">
							
							  </div>
							  <div class="mnum" style="color:#444">
								<a id="PaikeOSDetailDate7" class="PaikeOSDetailDate" onclick="updatePresetDataRange('PaikeOSDetailDate', 7)">周</a> |
								<a id="PaikeOSDetailDate30" class="PaikeOSDetailDate" onclick="updatePresetDataRange('PaikeOSDetailDate', 30)">月</a> |
								<a id="PaikeOSDetailDate90" class="PaikeOSDetailDate" onclick="updatePresetDataRange('PaikeOSDetailDate', 90)">季</a> |
								<a id="PaikeOSDetailDate365" class="PaikeOSDetailDate" onclick="updatePresetDataRange('PaikeOSDetailDate', 365)">年</a> |
								<a id="PaikeOSDetailDateAll" class="PaikeOSDetailDate" onclick="updatePresetDataRange('PaikeOSDetailDate', 'All')">全部</a>
							 </div>
							  <div class="clear"></div>

						</div>
					</div>

					<div class="blockboxbg">
						<div class="blockbox" id="PaikeOSDetailTab">

						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div style="float:right">
							<div id="PaikeOSDetailLineTab" class="PaikeOSDetailChartTab citem" onclick="changeChartType('PaikeOSDetail', 'Line');"><img src="resources/images/linechart.png" width="25" /></div>
							<div id="PaikeOSDetailTableTab" class="PaikeOSDetailChartTab citem" onclick="changeChartType('PaikeOSDetail', 'Table');"><img src="resources/images/table.png" width="25" /></div>
							<div id="PaikeOSDetailAllTab" class="PaikeOSDetailChartTab citem" onclick="changeChartType('PaikeOSDetail', 'All');"><img src="resources/images/expand.png" width="25" /></div>	
						</div>
     					<div class="clear"></div>

						<div class="tab-content default-tab" id="tabPaikeOSDetailLine">
							<div id="PaikeOSDetailLine" class="PaikeOSDetailChart" style="margin: 0 auto; "></div>
							<div id="PaikeOSDetailTable" class="PaikeOSDetailChart" style=" display:none;" ></div>
						</div>
					</div>
				</div>
			</div>

			<!-- 渠道推广 -->
			<div id="PromoGeneralContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>渠道推广</h3>
						<div class="clear"></div>
					</div>
					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							<strong>选择时段</strong>
							<div class="selbox">
								<input class="datainp first_date date"  id="promoGeneralContentStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">

								<span>到</span>
								<input class="datainp last_date date" id="promoGeneralContentEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">
								<select id="promoFactory">
									<option value="">----渠道名----</option>
								</select>


								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="getPromoGeneralData()">
							
							  </div>
							  <div class="clear"></div>

						</div>
					</div>
					<div class="blockboxbg" id="PromoGeneralResultType" style="display:none">
						<div class="blockbox">

						  <div id="PromoGeneralContentTab0" onclick="changePromoGeneralContentValueType(0)" class="bitem selbitem">使用设备数(UV)</div>
						  <div id="PromoGeneralContentTab1" onclick="changePromoGeneralContentValueType(1)" class="bitem">新增设备数(NU)</div>

						</div>
					</div>

					<div class="content-box-content" style="min-height:400px">
						<div class="tab-content default-tab" id="tabPromoGeneralContentLine">
							<div id="PromoGeneralContentLine" class="PromoGeneralContentChart" style="margin: 0 auto; "></div>
							<div id="PromoGeneralContentTable" class="PromoGeneralContentChart" ></div>
						</div>
					</div>


				</div>
			</div>

			<!-- 厂商内置 -->
			<div id="FactoryGeneralContent" class="pageContent" style="display:none">
				<div class="content-box">	
					<div class="content-box-header">
						<h3>厂商内置</h3>
						<div class="clear"></div>
					</div>
					<div class="time_select_wrap">
						<div class="statsTableHeader"> 
							
							<div class="selbox">						
								<span>平台</span>
								<select id="factoryOS" onchange="changeFactoryOS(this);">
									<option value="">全部平台</option>
								</select>
								<span>厂商</span>
								<select id="factoryName" onchange="changeFactoryName(this);">
									<option value="">全部厂商</option>
								</select>

								<span id="factoryDate" style="display:none">
									<span>选择时段</span>
									<input class="datainp first_date date"  id="FactoryGeneralContentStartDate" maxlength="524288" name="" size="20" tabindex="0" title="">
									<span>到</span>
									<input class="datainp last_date date" id="FactoryGeneralContentEndDate" maxlength="524288" name="" size="20" tabindex="0" title="">	
								</span>
								<span id="factoryPeriod">
									<span>选择时段</span>
									<select id="factoryPeroidSel">
										<option value="w">周</option>
										<option value="m">月</option>
										<option value="q">季</option>
										<option value="y">年</option>
									</select>									
								</span>



								<input type="button" class="upbtn" value="&nbsp;更新&nbsp;" onclick="getFactoryGeneralData()">
							
							  </div>
							  <div class="clear"></div>

						</div>
					</div>
					<div id="FactoryGeneralResult1" style="display:none">
						<div class="blockboxbg">
							<div class="blockbox">
							  <div id="FactoryGeneralContentTab0" onclick="changeFactoryGeneralContentValueType(0)" class="bitem selbitem">使用设备数(UV)</div>
							  <div id="FactoryGeneralContentTab1" onclick="changeFactoryGeneralContentValueType(1)" class="bitem">新增设备数(NU)</div>
							</div>
						</div>
						<div class="content-box-content" style="min-height:400px">
							<div class="tab-content default-tab" id="tabFactoryGeneralContentLine">
								<div id="FactoryGeneralContentLine" class="FactoryGeneralContentChart" style="margin: 0 auto; "></div>
								<div id="FactoryGeneralContentTable" class="FactoryGeneralContentChart" ></div>
							</div>
						</div>
					</div>
					<div id="FactoryGeneralResult2" style="display:none">
						<div class="blockboxbg">
							<div class="blockbox">
							  <div id="FactoryGeneralContentTab3" onclick="changeFactoryGeneralContentValueType(0)" class="bitem selbitem">累计新增设备数(TU)</div>
							</div>
						</div>
						<div class="content-box-content" style="min-height:400px">
							<div class="tab-content default-tab">
								<div id="FactoryGeneralContentPie" class="FactoryGeneralContentChart" ></div>
							</div>
						</div>
					</div>




				</div>
			</div>



			<div class="clear"></div>
		
	</div>
	</form>
	</body>
</html>
